package com.zy.cat.entity.dev;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import org.apache.commons.lang3.RandomUtils;

import com.zy.cat.common.utils.TJKUtils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @info 9趣猫提现详细信息实体类
 * @author Link
 * @date 2019-07-04 08:58
 */
@Entity
@Table(name = "zy_cat_new_add_order", indexes = {
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "oid", columnList = "oid"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@RequiredArgsConstructor
@ApiModel("9趣猫新增订单记录")
public class CatDevNewAddOrderHistory {

	@Id
	@Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '订单号[9趣猫新增订单记录]'")
	@ApiModelProperty(value = "订单号", example = "WX8510241024543843")
	private String oid;
	
	@Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '用户ID'")
	@ApiModelProperty(value = "用户ID", example = "8510241024543843")
	private String pid;
		
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime;

	public CatDevNewAddOrderHistory(String pid) {
		super();
		this.pid = pid;
	}
}
